﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JsonRpc
{
    /// <summary>
    /// 响应结构实用泛型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class JsonResponse<T>
    {
        /// <summary>
        /// 响应ID用于校验调用是否对应
        /// </summary>
        public long ID { set; get; }

        /// <summary>
        /// 校验远程调用是否出现了错误
        /// 如果出现了错误就会将整个错误文本抛出
        /// </summary>
        public string Error { set; get; }

        /// <summary>
        /// 响应结果
        /// </summary>
        public T Result { set; get; }
    }
}
